import request from '@/utils/requestPro';

/**
 * 查询商户营业状态
 * @param params
 */
export function businessQueryBusinessStatusApi(params) {
	return request({
		url: `/admin/appHome/businessStatus/businessQueryBusinessStatus`,
		method: 'get',
		params,
	});
}

/**
 * 查询商户自己经营城市
 * @param params
 */
export function queryBusinessOperateCityApi(params) {
	return request({
		url: `/admin/appHome/businessOperateCity/queryBusinessOperateCity`,
		method: 'get',
		params,
	});
}

/**
 * 需修改商户的具体营业时间
 * @param data
 */
export function businessModifyBusinessTimeApi(data) {
	return request({
		url: `/admin/appHome/businessStatus/businessModifyBusinessTime`,
		method: 'put',
		data,
	});
}

/**
 * 需修改商户的自动歇业
 * @param data
 */
export function businessModifyAutomaticallyApi(data) {
	return request({
		url: `/admin/appHome/businessStatus/businessModifyAutomatically`,
		method: 'put',
		data,
	});
}

/**
 * 商户修改某区域是否营业
 * @param data
 */
export function businessModifyBusinessInformationApi(data) {
	return request({
		url: `/admin/appHome/businessStatus/businessModifyBusinessInformation`,
		method: 'put',
		data,
	});
}

/**
 * 商户修改总的营业状态
 * @param data
 */
export function businessModifyBusinessStatusApi(data) {
	return request({
		url: `/admin/appHome/businessStatus/businessModifyBusinessStatus`,
		method: 'put',
		data,
	});
}

/**
 * 批量配置营业城市信息
 * @param params
 */
export function batSetBusinessStatusApi(data) {
	return request({
		url: `/admin/appHome/businessStatus/batchSettingbusinessModifyBusinessesInfo`,
		method: 'put',
		data,
	});
}